package com.tony.mapper.domain.po;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tony
 * @date 2020/5/30 17:08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "s_dictionary")
public class Dictionary implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父级id
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 父级key
     */
    @TableField(value = "parent_key")
    private String parentKey;

    /**
     * dictKey
     */
    @TableField(value = "dict_key")
    private String dictKey;

    /**
     * dictName
     */
    @TableField(value = "dict_name")
    private String dictName;

    /**
     * dictValue
     */
    @TableField(value = "dict_value")
    private String dictValue;

    /**
     * sort
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * createId
     */
    @TableField(value = "create_id")
    private Long createId;

    /**
     * updateId
     */
    @TableField(value = "update_id")
    private Long updateId;

    /**
     * createTime
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * updateTime
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 状态1：正常2：禁用
     */
    @TableField(value = "is_enable")
    private Integer isEnable;

    /**
     * 删除状态1：正常2：删除
     */
    @TableLogic
    @TableField(value = "is_del")
    private Integer isDel;

    /**
     * 描述
     */
    @TableField(value = "dict_description")
    private String dictDescription;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_PARENT_KEY = "parent_key";

    public static final String COL_DICT_KEY = "dict_key";

    public static final String COL_DICT_NAME = "dict_name";

    public static final String COL_DICT_VALUE = "dict_value";

    public static final String COL_SORT = "sort";

    public static final String COL_CREATE_ID = "create_id";

    public static final String COL_UPDATE_ID = "update_id";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_ENABLE = "is_enable";

    public static final String COL_IS_DEL = "is_del";

    public static final String COL_DICT_DESCRIPTION = "dict_description";
}